import { createApp } from 'vue'
import type { App } from 'vue'
import globleApp from './App.vue'
import router from './router'
import pinia from './store'
import 'element-plus/dist/index.css'
import '@/styles/index.css'
import '@/assets/fonts/font.css'
import 'animate.css'
import customPlugins from './plugins'
import Particles from "particles.vue3"
import DataV from '@dataview/datav-vue3'

const app: App = createApp(globleApp)

app.config.globalProperties.baseURL = import.meta.env.VITE_APP_BASE_API

app.config.errorHandler = (err, vm, info) => {
  console.error(err, vm, info)
}

app.use(router)
   .use(pinia)
   .use(customPlugins)
   .use(Particles)
   .use(DataV)
   .mount('#app')